<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        div {
            padding: 0px;
            margin: 0px;
        }

        div p {
            border: 5px solid green;
            outline: gray dotted 10px;
        }

        .div1 p {
            outline: none;
        }
    </style>
</head>
<body>
    <div>
        <p>轮廓演示</p>
    </div>
    <div class="div1">
        <p>轮廓演示2</p>
    </div>
</body>
</html>